<template>
  <div>
    详情
    {{ cachedViews }}
    <el-input v-model="name"></el-input>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref, computed } from 'vue'
import { useStore } from 'vuex'

export default defineComponent({
  name: 'BasicDetail',
  setup() {
    const store = useStore()
    const name = ref('')

    const cachedViews = computed(() => store.getters.cachedViews)

    return {
      name,
      cachedViews
    }
  }
})
</script>
